﻿using System;
using System.Collections.Generic;
using Character;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.UI;

// Token: 0x020001D4 RID: 468
public class BodyCustomEdit : MonoBehaviour
{
	// Token: 0x06000C60 RID: 3168 RVA: 0x00048930 File Offset: 0x00046B30
	public void Setup(Human human, EditEquipShow equipShow)
	{
		this.human = human;
		this.equipShow = equipShow;
		this.CustomHighlightTexPath = ((human.sex != SEX.FEMALE) ? BodyCustomEdit.CustomHighlightTexPath_M : BodyCustomEdit.CustomHighlightTexPath_F);
		this.SetupPreset();
		human.body.CreateCustomHighlightMaterial();
		this.customMatAlpha = human.body.CustomHighlightMat_Skin.color.a;
		Color color = human.body.CustomHighlightMat_Skin.color;
		color.a = 0f;
		human.body.CustomHighlightMat_Skin.color = color;
		BodyCustomEdit.SliderData[] array = (human.sex != SEX.FEMALE) ? BodyCustomEdit.datas_M : BodyCustomEdit.datas_F;
		this.sliders = new InputSliderUI[array.Length];
		for (int i = 0; i < array.Length; i++)
		{
			GameObject parent = this.tabMains[(int)array[i].type];
			InputSliderUI inputSliderUI = this.editMode.CreateInputSliderUI(parent, array[i].name, 0f, 100f, true, 50f, null);
			this.sliders[i] = inputSliderUI;
			EventTrigger eventTrigger = inputSliderUI.GetEventTrigger();
			int id = array[i].id;
			EventTrigger.Entry entry = new EventTrigger.Entry();
			entry.eventID = EventTriggerType.PointerEnter;
			entry.callback.AddListener(delegate(BaseEventData data)
			{
				this.PointerEnter(id);
			});
			eventTrigger.triggers.Add(entry);
			EventTrigger.Entry entry2 = new EventTrigger.Entry();
			entry2.eventID = EventTriggerType.PointerExit;
			entry2.callback.AddListener(delegate(BaseEventData data)
			{
				this.PointerExit(id);
			});
			eventTrigger.triggers.Add(entry2);
		}
		for (int j = 0; j < this.tabMains.Length; j++)
		{
			this.tabMains[j].gameObject.SetActive(false);
		}
		this.onCursorNo = -1;
		this.highlightNo = -1;
		this.showHighlight = false;
		this.easySwitch = this.editMode.CreateSwitchUI(this.tabMains[0], "簡易体型設定", false, new UnityAction<bool>(this.OnChangeSwitch_Easy));
		this.easySlider = this.editMode.CreateInputSliderUI(this.tabMains[0], "簡易体型", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeSlider_Easy));
		this.bustSoft = this.editMode.CreateInputSliderUI(this.tabMains[1], "胸の柔らかさ", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeSlider_BustSoft));
		this.bustWeight = this.editMode.CreateInputSliderUI(this.tabMains[1], "胸の重さ", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeSlider_BustWeight));
		this.editMode.CreateLabel(this.tabMains[0], "肌");
		this.selSets_Skin = this.editMode.CreateItemSelectUISets(this.tabMains[0], "肌", this.editMode.thumnbs_bodySkin, new UnityAction<CustomSelectSet>(this.OnChangeSkin));
		this.detailRate = this.editMode.CreateInputSliderUI(this.tabMains[0], "肉感の強さ", 0f, 100f, false, 0f, new UnityAction<float>(this.OnChangeDetailRate));
		this.skin_H = this.editMode.CreateInputSliderUI(this.tabMains[0], "色相", -50f, 50f, true, 0f, new UnityAction<float>(this.OnChangeColor_SkinH));
		this.skin_S = this.editMode.CreateInputSliderUI(this.tabMains[0], "彩度", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeColor_SkinS));
		this.skin_V = this.editMode.CreateInputSliderUI(this.tabMains[0], "明度", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeColor_SkinV));
		this.specular_skin = this.editMode.CreateInputSliderUI(this.tabMains[0], "ツヤの強さ", 0f, 100f, true, 0f, new UnityAction<float>(this.OnChangeSlider_SkinSpecular));
		this.smooth_skin = this.editMode.CreateInputSliderUI(this.tabMains[0], "ツヤの質感", 0f, 100f, true, 70.25f, new UnityAction<float>(this.OnChangeSlider_SkinSmooth));
		List<CustomSelectSet> list = new List<CustomSelectSet>();
		for (int k = 0; k < this.presetNames.Count; k++)
		{
			list.Add(new CustomSelectSet(k, this.presetNames[k], null, null, false));
		}
		this.presetSelectUI_Skin = this.editMode.CreatePresetSelectUISets(this.tabMains[0], "プリセット", list, new UnityAction<CustomSelectSet>(this.OnPreset_Skin));
		this.nipLabel = this.editMode.CreateLabel(this.tabMains[1], "乳首");
		this.selSets_Nip = this.editMode.CreateItemSelectUISets(this.tabMains[1], "乳首", this.editMode.thumnbs_nip, new UnityAction<CustomSelectSet>(this.OnChangeNip));
		this.areolaSize = this.editMode.CreateInputSliderUI(this.tabMains[1], "乳輪の大きさ", 0f, 100f, true, 70f, new UnityAction<float>(this.OnChangeAreolaSize));
		this.nip_H = this.editMode.CreateInputSliderUI(this.tabMains[1], "色相", -50f, 50f, true, 0f, new UnityAction<float>(this.OnChangeColor_NipH));
		this.nip_S = this.editMode.CreateInputSliderUI(this.tabMains[1], "彩度", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeColor_NipS));
		this.nip_V = this.editMode.CreateInputSliderUI(this.tabMains[1], "明度", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeColor_NipV));
		this.nip_A = this.editMode.CreateInputSliderUI(this.tabMains[1], "透明", 0f, 100f, false, 100f, new UnityAction<float>(this.OnChangeColor_NipA));
		this.specular_nip = this.editMode.CreateInputSliderUI(this.tabMains[1], "ツヤの強さ", 0f, 100f, true, 0f, new UnityAction<float>(this.OnChangeSlider_NipSpecular));
		this.smooth_nip = this.editMode.CreateInputSliderUI(this.tabMains[1], "ツヤの質感", 0f, 100f, true, 70.25f, new UnityAction<float>(this.OnChangeSlider_NipSmooth));
		this.selSets_UnderHair = this.editMode.CreateItemSelectUISets(this.tabMains[7], "陰毛", this.editMode.thumnbs_underhair, new UnityAction<CustomSelectSet>(this.OnChangeUnderHair));
		this.color_underhair = this.editMode.CreateColorChangeButton(this.tabMains[7], "色", Color.white, true, new Action<Color>(this.OnChangeColor_UnderHair));
		this.selSets_Sunburn = this.editMode.CreateItemSelectUISets(this.tabMains[8], "日焼け", this.editMode.thumnbs_sunburn, new UnityAction<CustomSelectSet>(this.OnChangeSunburn));
		this.sunburn_H = this.editMode.CreateInputSliderUI(this.tabMains[8], "色相", -50f, 50f, true, 0f, new UnityAction<float>(this.OnChangeSlider_SunburnH));
		this.sunburn_S = this.editMode.CreateInputSliderUI(this.tabMains[8], "彩度", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeSlider_SunburnS));
		this.sunburn_V = this.editMode.CreateInputSliderUI(this.tabMains[8], "明度", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeSlider_SunburnV));
		this.sunburn_A = this.editMode.CreateInputSliderUI(this.tabMains[8], "濃度", 0f, 100f, false, 0f, new UnityAction<float>(this.OnChangeSlider_SunburnA));
		List<CustomSelectSet> list2 = new List<CustomSelectSet>();
		for (int l = 0; l < this.presetNames.Count; l++)
		{
			list2.Add(new CustomSelectSet(l, this.presetNames[l], null, null, false));
		}
		this.presetSelectUI_Burn = this.editMode.CreatePresetSelectUISets(this.tabMains[8], "プリセット", list2, new UnityAction<CustomSelectSet>(this.OnPreset_Burn));
		this.selSets_Tattoo = this.editMode.CreateItemSelectUISets(this.tabMains[9], "タトゥー", this.editMode.thumnbs_bodyTattoo, new UnityAction<CustomSelectSet>(this.OnChangeTattoo));
		this.color_tattoo = this.editMode.CreateColorChangeButton(this.tabMains[9], "色", Color.white, true, new Action<Color>(this.OnChangeColor_Tattoo));
		this.editMode.CreateLabel(this.tabMains[6], "爪");
		this.nail_H = this.editMode.CreateInputSliderUI(this.tabMains[6], "色相", -50f, 50f, true, 0f, new UnityAction<float>(this.OnChangeColor_NailH));
		this.nail_S = this.editMode.CreateInputSliderUI(this.tabMains[6], "彩度", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeColor_NailS));
		this.nail_V = this.editMode.CreateInputSliderUI(this.tabMains[6], "明度", 0f, 100f, true, 50f, new UnityAction<float>(this.OnChangeColor_NailV));
		this.specular_nail = this.editMode.CreateInputSliderUI(this.tabMains[6], "ツヤの強さ", 0f, 100f, true, 0f, new UnityAction<float>(this.OnChangeSlider_NailSpecular));
		this.smooth_nail = this.editMode.CreateInputSliderUI(this.tabMains[6], "ツヤの質感", 0f, 100f, true, 60f, new UnityAction<float>(this.OnChangeSlider_NailSmooth));
		this.editMode.CreateLabel(this.tabMains[6], "マニキュア");
		this.manicure_Color = this.editMode.CreateColorChangeButton(this.tabMains[6], "色", Color.white, true, new Action<Color>(this.OnChangeColor_ManicureColor));
		this.specular_manicure = this.editMode.CreateInputSliderUI(this.tabMains[6], "ツヤの強さ", 0f, 100f, false, 0f, new UnityAction<float>(this.OnChangeSlider_ManicureSpecular));
		this.smooth_manicure = this.editMode.CreateInputSliderUI(this.tabMains[6], "ツヤの質感", 0f, 100f, false, 0f, new UnityAction<float>(this.OnChangeSlider_ManicureSmooth));
		bool active = human.sex == SEX.FEMALE;
		this.nipLabel.gameObject.SetActive(active);
		this.selSets_Nip.toggle.gameObject.SetActive(active);
		this.areolaSize.gameObject.SetActive(active);
		this.nip_H.gameObject.SetActive(active);
		this.nip_S.gameObject.SetActive(active);
		this.nip_V.gameObject.SetActive(active);
		this.nip_A.gameObject.SetActive(active);
		this.specular_nip.gameObject.SetActive(active);
		this.smooth_nip.gameObject.SetActive(active);
		this.selSets_UnderHair.toggle.gameObject.SetActive(active);
		this.selSets_Sunburn.toggle.gameObject.SetActive(active);
		this.sunburn_H.gameObject.SetActive(active);
		this.sunburn_S.gameObject.SetActive(active);
		this.sunburn_V.gameObject.SetActive(active);
		this.sunburn_A.gameObject.SetActive(active);
		this.nail_H.gameObject.SetActive(active);
		this.nail_S.gameObject.SetActive(active);
		this.nail_V.gameObject.SetActive(active);
		this.specular_nail.gameObject.SetActive(active);
		this.smooth_nail.gameObject.SetActive(active);
		this.manicure_Color.gameObject.SetActive(active);
		this.specular_manicure.gameObject.SetActive(active);
		this.smooth_manicure.gameObject.SetActive(active);
		this.bustSoft.gameObject.SetActive(active);
		this.bustWeight.gameObject.SetActive(active);
		this.toggles[6].gameObject.SetActive(active);
		this.toggles[8].gameObject.SetActive(active);
		this.LoadedHuman();
		this.colorCopyToggle.action.AddListener(new UnityAction<bool>(this.OnToggleButton_ColorCopyHelper));
		this.colorCopyHelper.moveable.AddOnChange(new UnityAction<MoveableUI.STATE>(this.OnChangeColorCopyHelperMoveableState));
	}

	// Token: 0x06000C61 RID: 3169 RVA: 0x00049694 File Offset: 0x00047894
	private void SetupPreset()
	{
		this.presetNames.Clear();
		this.presetColors.Clear();
		TagText tagText = new TagText();
		tagText.Load_TextAsset(this.presetText);
		for (int i = 0; i < tagText.ElementNum; i++)
		{
			TagText.Element element = tagText.Elements[i];
			if (element.Tag == "Color")
			{
				Vector3 item = default(Vector3);
				string item2 = string.Empty;
				item2 = TagTextUtility.Load_String(element, "name", 0);
				item.x = TagTextUtility.Load_Float(element, "H", 0);
				item.y = TagTextUtility.Load_Float(element, "S", 0);
				item.z = TagTextUtility.Load_Float(element, "V", 0);
				this.presetNames.Add(item2);
				this.presetColors.Add(item);
			}
		}
	}

	// Token: 0x06000C62 RID: 3170 RVA: 0x00049774 File Offset: 0x00047974
	private void OnEnable()
	{
		if (this.equipShow != null)
		{
			this.equipShow.SetAuto(EditEquipShow.WEARSHOW.NUDE);
		}
		this.colorCopyToggle.ChangeValue(this.colorCopyHelper.gameObject.activeSelf, false);
	}

	// Token: 0x06000C63 RID: 3171 RVA: 0x000497B0 File Offset: 0x000479B0
	private void Update()
	{
		int num = -1;
		for (int i = 0; i < this.toggles.Length; i++)
		{
			if (this.toggles[i].Value)
			{
				num = i;
			}
			this.tabMains[i].gameObject.SetActive(this.toggles[i].Value);
		}
		if (num != this.nowTab)
		{
			this.ChangeTab(num);
		}
		BodyCustomEdit.SliderData[] array = (this.human.sex != SEX.FEMALE) ? BodyCustomEdit.datas_M : BodyCustomEdit.datas_F;
		for (int j = 0; j < this.sliders.Length; j++)
		{
			if (array[j].type == (BodyCustomEdit.TAB)this.nowTab)
			{
				float value = this.sliders[j].Value * 0.01f;
				this.human.body.SetShape(array[j].id, value);
			}
		}
		this.UpdateHighlight();
		this.easySlider.gameObject.SetActive(this.easyCustomFlag);
		this.toggles[2].Interactable = !this.easyCustomFlag;
		this.toggles[3].Interactable = !this.easyCustomFlag;
		this.toggles[4].Interactable = !this.easyCustomFlag;
		this.toggles[5].Interactable = !this.easyCustomFlag;
	}

	// Token: 0x06000C64 RID: 3172 RVA: 0x00049910 File Offset: 0x00047B10
	private void OnChangeColorCopyHelperMoveableState(MoveableUI.STATE state)
	{
		if (state == MoveableUI.STATE.CLOSED)
		{
			this.colorCopyToggle.ChangeValue(false, false);
		}
	}

	// Token: 0x06000C65 RID: 3173 RVA: 0x00049928 File Offset: 0x00047B28
	public void ChangeSlider()
	{
	}

	// Token: 0x06000C66 RID: 3174 RVA: 0x0004992C File Offset: 0x00047B2C
	public void LoadedHuman()
	{
		this.invoke = false;
		BodyParameter body = this.human.customParam.body;
		BodyCustomEdit.SliderData[] array = (this.human.sex != SEX.FEMALE) ? BodyCustomEdit.datas_M : BodyCustomEdit.datas_F;
		for (int i = 0; i < this.sliders.Length; i++)
		{
			if (array[i].type == (BodyCustomEdit.TAB)this.nowTab)
			{
				this.sliders[i].Value = this.human.body.GetShape(array[i].id) * 100f;
			}
		}
		this.selSets_Skin.SetSelectedFromDataID(body.bodyID);
		this.detailRate.SetValue(body.detailWeight * 100f);
		this.skin_H.SetValue(body.skinColor.offset_h * 100f);
		this.skin_S.SetValue(BodyCustomEdit.SVtoSliderVal(body.skinColor.offset_s));
		this.skin_V.SetValue(BodyCustomEdit.SVtoSliderVal(body.skinColor.offset_v));
		this.specular_skin.SetValue(body.skinColor.metallic * 100f * 2.5f);
		this.smooth_skin.SetValue(body.skinColor.smooth * 100f * 1.25f);
		this.bustSoft.SetValue(body.bustSoftness * 100f);
		this.bustWeight.SetValue(body.bustWeight * 100f);
		this.selSets_Nip.SetSelectedFromDataID(body.nipID);
		this.areolaSize.SetValue(body.areolaSize * 100f);
		this.nip_H.SetValue(body.nipColor.offset_h * 100f);
		this.nip_S.SetValue(BodyCustomEdit.SVtoSliderVal(body.nipColor.offset_s));
		this.nip_V.SetValue(BodyCustomEdit.SVtoSliderVal(body.nipColor.offset_v));
		this.nip_A.SetValue(body.nipColor.alpha * 100f);
		this.specular_nip.SetValue(body.nipColor.metallic * 100f * 2.5f);
		this.smooth_nip.SetValue(body.nipColor.smooth * 100f * 1.25f);
		this.selSets_UnderHair.SetSelectedFromDataID(body.underhairID);
		this.color_underhair.SetColor(body.underhairColor.mainColor);
		this.selSets_Sunburn.SetSelectedFromDataID(body.sunburnID);
		this.sunburn_H.SetValue(body.sunburnColor_H * 100f);
		this.sunburn_S.SetValue(BodyCustomEdit.SVtoSliderVal(body.sunburnColor_S));
		this.sunburn_V.SetValue(BodyCustomEdit.SVtoSliderVal(body.sunburnColor_V));
		this.sunburn_A.SetValue(body.sunburnColor_A * 100f);
		this.selSets_Tattoo.SetSelectedFromDataID(body.tattooID);
		this.color_tattoo.SetColor(body.tattooColor);
		this.nail_H.SetValue(body.nailColor.offset_h * 100f);
		this.nail_S.SetValue(BodyCustomEdit.SVtoSliderVal(body.nailColor.offset_s));
		this.nail_V.SetValue(BodyCustomEdit.SVtoSliderVal(body.nailColor.offset_v));
		this.specular_nail.SetValue(body.nailColor.metallic * 100f);
		this.smooth_nail.SetValue(body.nailColor.smooth * 100f);
		this.manicure_Color.SetColor(body.manicureColor.mainColor1);
		this.specular_manicure.SetValue(body.manicureColor.specular1 * 100f);
		this.smooth_manicure.SetValue(body.manicureColor.smooth1 * 100f);
		this.invoke = true;
	}

	// Token: 0x06000C67 RID: 3175 RVA: 0x00049D24 File Offset: 0x00047F24
	public void ChangedColor()
	{
		this.invoke = false;
		BodyParameter body = this.human.customParam.body;
		this.skin_H.SetValue(body.skinColor.offset_h * 100f);
		this.skin_S.SetValue(BodyCustomEdit.SVtoSliderVal(body.skinColor.offset_s));
		this.skin_V.SetValue(BodyCustomEdit.SVtoSliderVal(body.skinColor.offset_v));
		this.nip_H.SetValue(body.nipColor.offset_h * 100f);
		this.nip_S.SetValue(BodyCustomEdit.SVtoSliderVal(body.nipColor.offset_s));
		this.nip_V.SetValue(BodyCustomEdit.SVtoSliderVal(body.nipColor.offset_v));
		this.nip_A.SetValue(body.nipColor.alpha * 100f);
		this.color_underhair.SetColor(body.underhairColor.mainColor);
		this.sunburn_H.SetValue(body.sunburnColor_H * 100f);
		this.sunburn_S.SetValue(BodyCustomEdit.SVtoSliderVal(body.sunburnColor_S));
		this.sunburn_V.SetValue(BodyCustomEdit.SVtoSliderVal(body.sunburnColor_V));
		this.sunburn_A.SetValue(body.sunburnColor_A * 100f);
		this.nail_H.SetValue(body.nailColor.offset_h * 100f);
		this.nail_S.SetValue(BodyCustomEdit.SVtoSliderVal(body.nailColor.offset_s));
		this.nail_V.SetValue(BodyCustomEdit.SVtoSliderVal(body.nailColor.offset_v));
		this.invoke = true;
	}

	// Token: 0x06000C68 RID: 3176 RVA: 0x00049ED4 File Offset: 0x000480D4
	private static float SVtoSliderVal(float v)
	{
		return v * 50f;
	}

	// Token: 0x06000C69 RID: 3177 RVA: 0x00049EE0 File Offset: 0x000480E0
	private static float SliderValtoSV(float v)
	{
		return v * 0.02f;
	}

	// Token: 0x06000C6A RID: 3178 RVA: 0x00049EEC File Offset: 0x000480EC
	private void ChangeTab(int tab)
	{
		SystemSE.Play(SystemSE.SE.CHOICE);
		BodyCustomEdit.SliderData[] array = (this.human.sex != SEX.FEMALE) ? BodyCustomEdit.datas_M : BodyCustomEdit.datas_F;
		this.nowTab = tab;
		if (this.nowTab == -1)
		{
			return;
		}
		for (int i = 0; i < this.sliders.Length; i++)
		{
			if (array[i].type == (BodyCustomEdit.TAB)this.nowTab)
			{
				this.sliders[i].Value = this.human.body.GetShape(array[i].id) * 100f;
			}
		}
	}

	// Token: 0x06000C6B RID: 3179 RVA: 0x00049F8C File Offset: 0x0004818C
	private void PointerEnter(int no)
	{
		this.onCursorNo = no;
	}

	// Token: 0x06000C6C RID: 3180 RVA: 0x00049F98 File Offset: 0x00048198
	private void PointerExit(int no)
	{
		if (this.onCursorNo == no)
		{
			this.onCursorNo = -1;
		}
	}

	// Token: 0x06000C6D RID: 3181 RVA: 0x00049FB0 File Offset: 0x000481B0
	private void ChangeCustomPart(int newNo)
	{
		if (this.showHighlight && ConfigData.showCustomHighlight)
		{
			if (newNo != this.highlightNo)
			{
				this.highlightNo = newNo;
				if (newNo != -1)
				{
					Texture texture = this.highlightTex;
					string path = this.CustomHighlightTexPath + this.highlightNo.ToString("00");
					this.highlightTex = Resources.Load<Texture>(path);
					this.human.body.CustomHighlightMat_Skin.mainTexture = this.highlightTex;
					float alpha = (!this.highlightTex) ? 0f : this.customMatAlpha;
					BodyCustomEdit.ChangeCustomAlpha(this.human.body.CustomHighlightMat_Skin, alpha);
					if (texture != null && texture != this.highlightTex)
					{
						Resources.UnloadAsset(texture);
					}
				}
				else
				{
					BodyCustomEdit.ChangeCustomAlpha(this.human.body.CustomHighlightMat_Skin, 0f);
				}
			}
		}
		else
		{
			BodyCustomEdit.ChangeCustomAlpha(this.human.body.CustomHighlightMat_Skin, 0f);
		}
	}

	// Token: 0x06000C6E RID: 3182 RVA: 0x0004A0D0 File Offset: 0x000482D0
	private static void ChangeCustomAlpha(Material mat, float alpha)
	{
		Color color = mat.color;
		color.a = alpha;
		mat.color = color;
	}

	// Token: 0x06000C6F RID: 3183 RVA: 0x0004A0F4 File Offset: 0x000482F4
	private void UpdateHighlight()
	{
		int newNo = this.onCursorNo;
		this.showHighlight = true;
		foreach (InputSliderUI inputSliderUI in this.sliders)
		{
			if (inputSliderUI.IsHandling)
			{
				this.showHighlight = false;
			}
		}
		this.ChangeCustomPart(newNo);
	}

	// Token: 0x06000C70 RID: 3184 RVA: 0x0004A148 File Offset: 0x00048348
	private void OnChangeSkin(CustomSelectSet set)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.bodyID = set.id;
		this.human.body.ChangeSkinMaterial();
		this.human.body.RendSkinTexture();
		this.human.head.RendSkinTexture();
	}

	// Token: 0x06000C71 RID: 3185 RVA: 0x0004A1AC File Offset: 0x000483AC
	private void OnChangeDetailRate(float value)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.detailWeight = value * 0.01f;
		this.human.body.ChangeBumpRate();
	}

	// Token: 0x06000C72 RID: 3186 RVA: 0x0004A1E8 File Offset: 0x000483E8
	private void OnChangeNip(CustomSelectSet set)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.nipID = set.id;
		this.human.body.ChangeNip();
	}

	// Token: 0x06000C73 RID: 3187 RVA: 0x0004A224 File Offset: 0x00048424
	private void OnChangeUnderHair(CustomSelectSet set)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.underhairID = set.id;
		this.human.body.ChangeUnderHair();
	}

	// Token: 0x06000C74 RID: 3188 RVA: 0x0004A260 File Offset: 0x00048460
	private void OnChangeSunburn(CustomSelectSet set)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.sunburnID = set.id;
		this.human.body.ChangeSunburn();
		this.human.body.RendSkinTexture();
	}

	// Token: 0x06000C75 RID: 3189 RVA: 0x0004A2B4 File Offset: 0x000484B4
	private void OnChangeTattoo(CustomSelectSet set)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.tattooID = set.id;
		this.human.body.ChangeTattoo();
		this.human.body.RendSkinTexture();
	}

	// Token: 0x06000C76 RID: 3190 RVA: 0x0004A308 File Offset: 0x00048508
	private void OnChangeColor_SkinH(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.skinColor.offset_h = val * 0.01f;
		this.human.body.RendSkinTexture();
		this.human.UpdateSkinMaterial();
		this.human.wears.ChangeBodyMaterial(this.human.body.Rend_skin);
		this.human.head.RendSkinTexture();
	}

	// Token: 0x06000C77 RID: 3191 RVA: 0x0004A390 File Offset: 0x00048590
	private void OnChangeColor_SkinS(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		val = BodyCustomEdit.SliderValtoSV(val);
		this.human.customParam.body.skinColor.offset_s = val;
		this.human.body.RendSkinTexture();
		this.human.UpdateSkinMaterial();
		this.human.wears.ChangeBodyMaterial(this.human.body.Rend_skin);
		this.human.head.RendSkinTexture();
	}

	// Token: 0x06000C78 RID: 3192 RVA: 0x0004A418 File Offset: 0x00048618
	private void OnChangeColor_SkinV(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		val = BodyCustomEdit.SliderValtoSV(val);
		this.human.customParam.body.skinColor.offset_v = val;
		this.human.body.RendSkinTexture();
		this.human.UpdateSkinMaterial();
		this.human.wears.ChangeBodyMaterial(this.human.body.Rend_skin);
		this.human.head.RendSkinTexture();
	}

	// Token: 0x06000C79 RID: 3193 RVA: 0x0004A4A0 File Offset: 0x000486A0
	private void OnChangeSlider_SkinSpecular(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.skinColor.metallic = val * 0.004f;
		this.human.UpdateSkinMaterial();
		this.human.wears.ChangeBodyMaterial(this.human.body.Rend_skin);
	}

	// Token: 0x06000C7A RID: 3194 RVA: 0x0004A508 File Offset: 0x00048708
	private void OnChangeSlider_SkinSmooth(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.skinColor.smooth = val * 0.008f;
		this.human.UpdateSkinMaterial();
		this.human.wears.ChangeBodyMaterial(this.human.body.Rend_skin);
	}

	// Token: 0x06000C7B RID: 3195 RVA: 0x0004A570 File Offset: 0x00048770
	private void OnChangeAreolaSize(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.areolaSize = val * 0.01f;
		Female female = this.human as Female;
		if (female != null)
		{
			female.ChangeAreoraSize();
		}
	}

	// Token: 0x06000C7C RID: 3196 RVA: 0x0004A5C4 File Offset: 0x000487C4
	private void OnChangeColor_NipH(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.nipColor.offset_h = val * 0.01f;
		this.human.body.ChangeNipColor();
	}

	// Token: 0x06000C7D RID: 3197 RVA: 0x0004A604 File Offset: 0x00048804
	private void OnChangeColor_NipS(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		val = BodyCustomEdit.SliderValtoSV(val);
		this.human.customParam.body.nipColor.offset_s = val;
		this.human.body.ChangeNipColor();
	}

	// Token: 0x06000C7E RID: 3198 RVA: 0x0004A650 File Offset: 0x00048850
	private void OnChangeColor_NipV(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		val = BodyCustomEdit.SliderValtoSV(val);
		this.human.customParam.body.nipColor.offset_v = val;
		this.human.body.ChangeNipColor();
	}

	// Token: 0x06000C7F RID: 3199 RVA: 0x0004A69C File Offset: 0x0004889C
	private void OnChangeColor_NipA(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.nipColor.alpha = val * 0.01f;
		this.human.body.ChangeNipColor();
	}

	// Token: 0x06000C80 RID: 3200 RVA: 0x0004A6DC File Offset: 0x000488DC
	private void OnChangeSlider_NipSpecular(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.nipColor.metallic = val * 0.004f;
		this.human.body.ChangeNipColor();
	}

	// Token: 0x06000C81 RID: 3201 RVA: 0x0004A71C File Offset: 0x0004891C
	private void OnChangeSlider_NipSmooth(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.nipColor.smooth = val * 0.008f;
		this.human.body.ChangeNipColor();
	}

	// Token: 0x06000C82 RID: 3202 RVA: 0x0004A75C File Offset: 0x0004895C
	private void OnNipParamFromSkin()
	{
		BodyParameter body = this.human.customParam.body;
		body.nipColor.offset_h = body.skinColor.offset_h;
		body.nipColor.offset_s = body.skinColor.offset_s;
		body.nipColor.offset_v = body.skinColor.offset_v;
		body.nipColor.metallic = body.skinColor.metallic;
		body.nipColor.smooth = body.skinColor.smooth;
		this.human.body.ChangeNipColor();
	}

	// Token: 0x06000C83 RID: 3203 RVA: 0x0004A7F8 File Offset: 0x000489F8
	private void OnNipParamFromSunburn()
	{
		BodyParameter body = this.human.customParam.body;
		body.nipColor.offset_h = Mathf.Lerp(body.skinColor.offset_h, body.sunburnColor_H, body.sunburnColor_A);
		body.nipColor.offset_s = Mathf.Lerp(body.skinColor.offset_s, body.sunburnColor_S, body.sunburnColor_A);
		body.nipColor.offset_v = Mathf.Lerp(body.skinColor.offset_v, body.sunburnColor_V, body.sunburnColor_A);
		body.nipColor.metallic = body.skinColor.metallic;
		body.nipColor.smooth = body.skinColor.smooth;
		this.human.body.ChangeNipColor();
	}

	// Token: 0x06000C84 RID: 3204 RVA: 0x0004A8C8 File Offset: 0x00048AC8
	private void OnChangeColor_UnderHair(Color color)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.underhairColor.mainColor = color;
		this.human.body.ChangeUnderHairColor();
	}

	// Token: 0x06000C85 RID: 3205 RVA: 0x0004A904 File Offset: 0x00048B04
	private void OnChangeSlider_UnderhairSpecular(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.underhairColor.metallic = val * 0.01f;
		this.human.body.ChangeUnderHairColor();
	}

	// Token: 0x06000C86 RID: 3206 RVA: 0x0004A944 File Offset: 0x00048B44
	private void OnChangeSlider_UnderhairSmooth(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.underhairColor.smooth = val * 0.01f;
		this.human.body.ChangeUnderHairColor();
	}

	// Token: 0x06000C87 RID: 3207 RVA: 0x0004A984 File Offset: 0x00048B84
	private void OnChangeSlider_SunburnH(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.sunburnColor_H = val * 0.01f;
		this.human.body.RendSkinTexture();
	}

	// Token: 0x06000C88 RID: 3208 RVA: 0x0004A9C0 File Offset: 0x00048BC0
	private void OnChangeSlider_SunburnS(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		val = BodyCustomEdit.SliderValtoSV(val);
		this.human.customParam.body.sunburnColor_S = val;
		this.human.body.RendSkinTexture();
	}

	// Token: 0x06000C89 RID: 3209 RVA: 0x0004A9FC File Offset: 0x00048BFC
	private void OnChangeSlider_SunburnV(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		val = BodyCustomEdit.SliderValtoSV(val);
		this.human.customParam.body.sunburnColor_V = val;
		this.human.body.RendSkinTexture();
	}

	// Token: 0x06000C8A RID: 3210 RVA: 0x0004AA38 File Offset: 0x00048C38
	private void OnChangeSlider_SunburnA(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.sunburnColor_A = val * 0.01f;
		this.human.body.RendSkinTexture();
	}

	// Token: 0x06000C8B RID: 3211 RVA: 0x0004AA74 File Offset: 0x00048C74
	private void OnChangeColor_Tattoo(Color color)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.tattooColor = color;
		this.human.body.RendSkinTexture();
	}

	// Token: 0x06000C8C RID: 3212 RVA: 0x0004AAA8 File Offset: 0x00048CA8
	private void OnChangeColor_NailH(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.nailColor.offset_h = val * 0.01f;
		this.human.body.ChangeNail();
	}

	// Token: 0x06000C8D RID: 3213 RVA: 0x0004AAE8 File Offset: 0x00048CE8
	private void OnChangeColor_NailS(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		val = BodyCustomEdit.SliderValtoSV(val);
		this.human.customParam.body.nailColor.offset_s = val;
		this.human.body.ChangeNail();
	}

	// Token: 0x06000C8E RID: 3214 RVA: 0x0004AB34 File Offset: 0x00048D34
	private void OnChangeColor_NailV(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		val = BodyCustomEdit.SliderValtoSV(val);
		this.human.customParam.body.nailColor.offset_v = val;
		this.human.body.ChangeNail();
	}

	// Token: 0x06000C8F RID: 3215 RVA: 0x0004AB80 File Offset: 0x00048D80
	private void OnChangeSlider_NailSpecular(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.nailColor.metallic = val * 0.01f;
		this.human.body.ChangeNail();
	}

	// Token: 0x06000C90 RID: 3216 RVA: 0x0004ABC0 File Offset: 0x00048DC0
	private void OnChangeSlider_NailSmooth(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.nailColor.smooth = val * 0.01f;
		this.human.body.ChangeNail();
	}

	// Token: 0x06000C91 RID: 3217 RVA: 0x0004AC00 File Offset: 0x00048E00
	private void OnChangeColor_ManicureColor(Color color)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.manicureColor.mainColor1 = color;
		this.human.body.ChangeManicure();
	}

	// Token: 0x06000C92 RID: 3218 RVA: 0x0004AC3C File Offset: 0x00048E3C
	private void OnChangeSlider_ManicureSpecular(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.manicureColor.specular1 = val * 0.01f;
		this.human.body.ChangeManicure();
	}

	// Token: 0x06000C93 RID: 3219 RVA: 0x0004AC7C File Offset: 0x00048E7C
	private void OnChangeSlider_ManicureSmooth(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.manicureColor.smooth1 = val * 0.01f;
		this.human.body.ChangeManicure();
	}

	// Token: 0x06000C94 RID: 3220 RVA: 0x0004ACBC File Offset: 0x00048EBC
	private void OnChangeSlider_BustSoft(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.bustSoftness = val * 0.01f;
		this.human.body.bustSoft.ReCalc();
	}

	// Token: 0x06000C95 RID: 3221 RVA: 0x0004ACFC File Offset: 0x00048EFC
	private void OnChangeSlider_BustWeight(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.human.customParam.body.bustWeight = val * 0.01f;
		this.human.body.bustWeight.ReCalc();
	}

	// Token: 0x06000C96 RID: 3222 RVA: 0x0004AD3C File Offset: 0x00048F3C
	private void OnChangeSwitch_Easy(bool flag)
	{
		if (!this.invoke)
		{
			return;
		}
		this.easyCustomFlag = flag;
		if (this.easyCustomFlag)
		{
			this.easySlider.SetValue(this.easyCustomVal * 100f);
			this.OnChangeSlider_Easy(this.easyCustomVal * 100f);
		}
		SystemSE.SE se = (!flag) ? SystemSE.SE.NO : SystemSE.SE.YES;
		SystemSE.Play(se);
	}

	// Token: 0x06000C97 RID: 3223 RVA: 0x0004ADA4 File Offset: 0x00048FA4
	private void OnChangeSlider_Easy(float val)
	{
		if (!this.invoke)
		{
			return;
		}
		this.easyCustomVal = val * 0.01f;
		BodyCustomEdit.EasyData[] array = (this.human.sex != SEX.FEMALE) ? BodyCustomEdit.easy_M : BodyCustomEdit.easy_F;
		for (int i = 0; i < array.Length; i++)
		{
			int no = array[i].no;
			float num = Mathf.Lerp(array[i].min, array[i].max, this.easyCustomVal);
			this.human.customParam.body.shapeVals[no] = num;
		}
		this.human.body.ShapeApply();
	}

	// Token: 0x06000C98 RID: 3224 RVA: 0x0004AE4C File Offset: 0x0004904C
	private void OnToggleButton_ColorCopyHelper(bool flag)
	{
		SystemSE.SE se = (!flag) ? SystemSE.SE.CLOSE : SystemSE.SE.OPEN;
		SystemSE.Play(se);
		if (flag)
		{
			this.colorCopyHelper.moveable.Open();
		}
		else
		{
			this.colorCopyHelper.moveable.Close();
		}
	}

	// Token: 0x06000C99 RID: 3225 RVA: 0x0004AE98 File Offset: 0x00049098
	private void OnPreset_Skin(CustomSelectSet data)
	{
		if (data.id < 0)
		{
			return;
		}
		Vector3 vector = this.presetColors[data.id];
		this.skin_H.SetValue(vector.x);
		this.skin_S.SetValue(vector.y);
		this.skin_V.SetValue(vector.z);
		this.human.customParam.body.skinColor.offset_h = vector.x * 0.01f;
		this.human.customParam.body.skinColor.offset_s = BodyCustomEdit.SliderValtoSV(vector.y);
		this.human.customParam.body.skinColor.offset_v = BodyCustomEdit.SliderValtoSV(vector.z);
		this.human.body.RendSkinTexture();
		this.human.UpdateSkinMaterial();
		this.human.wears.ChangeBodyMaterial(this.human.body.Rend_skin);
		this.human.head.RendSkinTexture();
	}

	// Token: 0x06000C9A RID: 3226 RVA: 0x0004AFB8 File Offset: 0x000491B8
	private void OnPreset_Burn(CustomSelectSet data)
	{
		if (data.id < 0)
		{
			return;
		}
		Vector3 vector = this.presetColors[data.id];
		this.sunburn_H.SetValue(vector.x);
		this.sunburn_S.SetValue(vector.y);
		this.sunburn_V.SetValue(vector.z);
		this.human.customParam.body.sunburnColor_H = vector.x * 0.01f;
		this.human.customParam.body.sunburnColor_S = BodyCustomEdit.SliderValtoSV(vector.y);
		this.human.customParam.body.sunburnColor_V = BodyCustomEdit.SliderValtoSV(vector.z);
		this.human.body.RendSkinTexture();
		this.human.UpdateSkinMaterial();
		this.human.wears.ChangeBodyMaterial(this.human.body.Rend_skin);
		this.human.head.RendSkinTexture();
	}

	// Token: 0x04000C76 RID: 3190
	private static readonly BodyCustomEdit.SliderData[] datas_F = new BodyCustomEdit.SliderData[]
	{
		new BodyCustomEdit.SliderData(0, "身長", BodyCustomEdit.TAB.GENERAL),
		new BodyCustomEdit.SliderData(1, "胸サイズ", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(2, "胸上下位置", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(3, "胸の左右開き", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(4, "胸の左右位置", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(5, "胸上下角度", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(6, "胸の尖り", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(7, "乳輪の膨らみ", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(8, "乳首太さ", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(9, "頭サイズ", BodyCustomEdit.TAB.GENERAL),
		new BodyCustomEdit.SliderData(10, "首周り幅", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(11, "首周り奥", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(12, "胴体肩周り幅", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(13, "胴体肩周り奥", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(14, "胴体上幅", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(15, "胴体上奥", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(16, "胴体下幅", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(17, "胴体下奥", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(18, "ウエスト位置", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(19, "腰上幅", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(20, "腰上奥", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(21, "腰下幅", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(22, "腰下奥", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(23, "尻", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(24, "尻角度", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(25, "太もも上", BodyCustomEdit.TAB.LEG),
		new BodyCustomEdit.SliderData(26, "太もも下", BodyCustomEdit.TAB.LEG),
		new BodyCustomEdit.SliderData(27, "ふくらはぎ", BodyCustomEdit.TAB.LEG),
		new BodyCustomEdit.SliderData(28, "足首", BodyCustomEdit.TAB.LEG),
		new BodyCustomEdit.SliderData(29, "肩", BodyCustomEdit.TAB.ARM),
		new BodyCustomEdit.SliderData(30, "上腕", BodyCustomEdit.TAB.ARM),
		new BodyCustomEdit.SliderData(31, "前腕", BodyCustomEdit.TAB.ARM),
		new BodyCustomEdit.SliderData(32, "乳首立ち", BodyCustomEdit.TAB.BUST)
	};

	// Token: 0x04000C77 RID: 3191
	private static readonly BodyCustomEdit.SliderData[] datas_M = new BodyCustomEdit.SliderData[]
	{
		new BodyCustomEdit.SliderData(1, "胸サイズ", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(2, "胸上下位置", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(3, "胸の左右開き", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(4, "胸上下角度", BodyCustomEdit.TAB.BUST),
		new BodyCustomEdit.SliderData(5, "頭サイズ", BodyCustomEdit.TAB.GENERAL),
		new BodyCustomEdit.SliderData(6, "首周り", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(7, "胴体肩周り", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(8, "胴体上", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(9, "胴体下", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(12, "腹", BodyCustomEdit.TAB.UPPER),
		new BodyCustomEdit.SliderData(10, "腰上", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(11, "腰下", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(13, "尻", BodyCustomEdit.TAB.LOWER),
		new BodyCustomEdit.SliderData(14, "太もも上", BodyCustomEdit.TAB.LEG),
		new BodyCustomEdit.SliderData(15, "太もも下", BodyCustomEdit.TAB.LEG),
		new BodyCustomEdit.SliderData(16, "ふくらはぎ", BodyCustomEdit.TAB.LEG),
		new BodyCustomEdit.SliderData(17, "足首", BodyCustomEdit.TAB.LEG),
		new BodyCustomEdit.SliderData(18, "肩", BodyCustomEdit.TAB.ARM),
		new BodyCustomEdit.SliderData(19, "上腕", BodyCustomEdit.TAB.ARM),
		new BodyCustomEdit.SliderData(20, "前腕", BodyCustomEdit.TAB.ARM)
	};

	// Token: 0x04000C78 RID: 3192
	private static readonly string CustomHighlightTexPath_F = "Custom Point F/Texture/cf_t_body_00_no";

	// Token: 0x04000C79 RID: 3193
	private static readonly string CustomHighlightTexPath_M = "Custom Point M/Texture/cm_t_body_00_no";

	// Token: 0x04000C7A RID: 3194
	private string CustomHighlightTexPath;

	// Token: 0x04000C7B RID: 3195
	private static readonly BodyCustomEdit.EasyData[] easy_F = new BodyCustomEdit.EasyData[]
	{
		new BodyCustomEdit.EasyData(10, 0f, 1f),
		new BodyCustomEdit.EasyData(11, 0f, 1f),
		new BodyCustomEdit.EasyData(12, 0f, 1f),
		new BodyCustomEdit.EasyData(13, 0f, 1f),
		new BodyCustomEdit.EasyData(14, 0f, 1f),
		new BodyCustomEdit.EasyData(15, 0f, 1f),
		new BodyCustomEdit.EasyData(16, 0f, 1f),
		new BodyCustomEdit.EasyData(17, 0f, 1f),
		new BodyCustomEdit.EasyData(18, 1f, 0f),
		new BodyCustomEdit.EasyData(19, 0f, 1f),
		new BodyCustomEdit.EasyData(20, 0f, 1f),
		new BodyCustomEdit.EasyData(21, 0f, 1f),
		new BodyCustomEdit.EasyData(22, 0f, 1f),
		new BodyCustomEdit.EasyData(23, 0f, 1f),
		new BodyCustomEdit.EasyData(24, 1f, 0f),
		new BodyCustomEdit.EasyData(25, 0f, 1f),
		new BodyCustomEdit.EasyData(26, 0f, 1f),
		new BodyCustomEdit.EasyData(27, 0f, 1f),
		new BodyCustomEdit.EasyData(28, 0f, 1f),
		new BodyCustomEdit.EasyData(29, 0f, 1f),
		new BodyCustomEdit.EasyData(30, 0f, 1f),
		new BodyCustomEdit.EasyData(31, 0f, 1f)
	};

	// Token: 0x04000C7C RID: 3196
	private static readonly BodyCustomEdit.EasyData[] easy_M = new BodyCustomEdit.EasyData[]
	{
		new BodyCustomEdit.EasyData(6, 0f, 1f),
		new BodyCustomEdit.EasyData(7, 0f, 1f),
		new BodyCustomEdit.EasyData(8, 0f, 1f),
		new BodyCustomEdit.EasyData(9, 0f, 1f),
		new BodyCustomEdit.EasyData(12, 0f, 1f),
		new BodyCustomEdit.EasyData(10, 0f, 1f),
		new BodyCustomEdit.EasyData(11, 0f, 1f),
		new BodyCustomEdit.EasyData(13, 0f, 1f),
		new BodyCustomEdit.EasyData(14, 0f, 1f),
		new BodyCustomEdit.EasyData(15, 0f, 1f),
		new BodyCustomEdit.EasyData(16, 0f, 1f),
		new BodyCustomEdit.EasyData(17, 0f, 1f),
		new BodyCustomEdit.EasyData(18, 0f, 1f),
		new BodyCustomEdit.EasyData(19, 0f, 1f),
		new BodyCustomEdit.EasyData(20, 0f, 1f)
	};

	// Token: 0x04000C7D RID: 3197
	[SerializeField]
	private EditMode editMode;

	// Token: 0x04000C7E RID: 3198
	private EditEquipShow equipShow;

	// Token: 0x04000C7F RID: 3199
	[SerializeField]
	private ToggleButton[] toggles = new ToggleButton[10];

	// Token: 0x04000C80 RID: 3200
	[SerializeField]
	private GameObject[] tabMains = new GameObject[10];

	// Token: 0x04000C81 RID: 3201
	[SerializeField]
	private ToggleButton colorCopyToggle;

	// Token: 0x04000C82 RID: 3202
	[SerializeField]
	private CharaColorCopyHelper colorCopyHelper;

	// Token: 0x04000C83 RID: 3203
	[SerializeField]
	private TextAsset presetText;

	// Token: 0x04000C84 RID: 3204
	private List<string> presetNames = new List<string>();

	// Token: 0x04000C85 RID: 3205
	private List<Vector3> presetColors = new List<Vector3>();

	// Token: 0x04000C86 RID: 3206
	private PresetSelectUISets presetSelectUI_Skin;

	// Token: 0x04000C87 RID: 3207
	private PresetSelectUISets presetSelectUI_Burn;

	// Token: 0x04000C88 RID: 3208
	private InputSliderUI[] sliders;

	// Token: 0x04000C89 RID: 3209
	private SwitchUI easySwitch;

	// Token: 0x04000C8A RID: 3210
	private InputSliderUI easySlider;

	// Token: 0x04000C8B RID: 3211
	private InputSliderUI skin_H;

	// Token: 0x04000C8C RID: 3212
	private InputSliderUI skin_S;

	// Token: 0x04000C8D RID: 3213
	private InputSliderUI skin_V;

	// Token: 0x04000C8E RID: 3214
	private InputSliderUI specular_skin;

	// Token: 0x04000C8F RID: 3215
	private InputSliderUI smooth_skin;

	// Token: 0x04000C90 RID: 3216
	private InputSliderUI areolaSize;

	// Token: 0x04000C91 RID: 3217
	private InputSliderUI nip_H;

	// Token: 0x04000C92 RID: 3218
	private InputSliderUI nip_S;

	// Token: 0x04000C93 RID: 3219
	private InputSliderUI nip_V;

	// Token: 0x04000C94 RID: 3220
	private InputSliderUI nip_A;

	// Token: 0x04000C95 RID: 3221
	private InputSliderUI specular_nip;

	// Token: 0x04000C96 RID: 3222
	private InputSliderUI smooth_nip;

	// Token: 0x04000C97 RID: 3223
	private ColorChangeButton color_underhair;

	// Token: 0x04000C98 RID: 3224
	private InputSliderUI nail_H;

	// Token: 0x04000C99 RID: 3225
	private InputSliderUI nail_S;

	// Token: 0x04000C9A RID: 3226
	private InputSliderUI nail_V;

	// Token: 0x04000C9B RID: 3227
	private InputSliderUI specular_nail;

	// Token: 0x04000C9C RID: 3228
	private InputSliderUI smooth_nail;

	// Token: 0x04000C9D RID: 3229
	private ColorChangeButton manicure_Color;

	// Token: 0x04000C9E RID: 3230
	private InputSliderUI specular_manicure;

	// Token: 0x04000C9F RID: 3231
	private InputSliderUI smooth_manicure;

	// Token: 0x04000CA0 RID: 3232
	private InputSliderUI sunburn_H;

	// Token: 0x04000CA1 RID: 3233
	private InputSliderUI sunburn_S;

	// Token: 0x04000CA2 RID: 3234
	private InputSliderUI sunburn_V;

	// Token: 0x04000CA3 RID: 3235
	private InputSliderUI sunburn_A;

	// Token: 0x04000CA4 RID: 3236
	private ColorChangeButton color_tattoo;

	// Token: 0x04000CA5 RID: 3237
	private ItemSelectUISets selSets_Skin;

	// Token: 0x04000CA6 RID: 3238
	private InputSliderUI detailRate;

	// Token: 0x04000CA7 RID: 3239
	private Text nipLabel;

	// Token: 0x04000CA8 RID: 3240
	private ItemSelectUISets selSets_Nip;

	// Token: 0x04000CA9 RID: 3241
	private ItemSelectUISets selSets_UnderHair;

	// Token: 0x04000CAA RID: 3242
	private ItemSelectUISets selSets_Sunburn;

	// Token: 0x04000CAB RID: 3243
	private ItemSelectUISets selSets_Tattoo;

	// Token: 0x04000CAC RID: 3244
	private InputSliderUI bustSoft;

	// Token: 0x04000CAD RID: 3245
	private InputSliderUI bustWeight;

	// Token: 0x04000CAE RID: 3246
	private Human human;

	// Token: 0x04000CAF RID: 3247
	private int nowTab = -1;

	// Token: 0x04000CB0 RID: 3248
	private float customMatAlpha = 1f;

	// Token: 0x04000CB1 RID: 3249
	private int onCursorNo = -1;

	// Token: 0x04000CB2 RID: 3250
	private int highlightNo = -1;

	// Token: 0x04000CB3 RID: 3251
	private bool showHighlight;

	// Token: 0x04000CB4 RID: 3252
	private Texture highlightTex;

	// Token: 0x04000CB5 RID: 3253
	private bool invoke = true;

	// Token: 0x04000CB6 RID: 3254
	private bool easyCustomFlag;

	// Token: 0x04000CB7 RID: 3255
	private float easyCustomVal = 0.5f;

	// Token: 0x020001D5 RID: 469
	private enum TAB
	{
		// Token: 0x04000CB9 RID: 3257
		GENERAL,
		// Token: 0x04000CBA RID: 3258
		BUST,
		// Token: 0x04000CBB RID: 3259
		UPPER,
		// Token: 0x04000CBC RID: 3260
		LOWER,
		// Token: 0x04000CBD RID: 3261
		ARM,
		// Token: 0x04000CBE RID: 3262
		LEG,
		// Token: 0x04000CBF RID: 3263
		NAIL,
		// Token: 0x04000CC0 RID: 3264
		UNDERHAIR,
		// Token: 0x04000CC1 RID: 3265
		SUNBURN,
		// Token: 0x04000CC2 RID: 3266
		TATTOO,
		// Token: 0x04000CC3 RID: 3267
		NUM
	}

	// Token: 0x020001D6 RID: 470
	private class SliderData
	{
		// Token: 0x06000C9C RID: 3228 RVA: 0x0004B774 File Offset: 0x00049974
		public SliderData(int id, string name, BodyCustomEdit.TAB type)
		{
			this.id = id;
			this.name = name;
			this.type = type;
		}

		// Token: 0x04000CC4 RID: 3268
		public int id;

		// Token: 0x04000CC5 RID: 3269
		public string name;

		// Token: 0x04000CC6 RID: 3270
		public BodyCustomEdit.TAB type;
	}

	// Token: 0x020001D7 RID: 471
	public class EasyData
	{
		// Token: 0x06000C9D RID: 3229 RVA: 0x0004B794 File Offset: 0x00049994
		public EasyData(int no, float min, float max)
		{
			this.no = no;
			this.min = min;
			this.max = max;
		}

		// Token: 0x04000CC7 RID: 3271
		public int no = -1;

		// Token: 0x04000CC8 RID: 3272
		public float min;

		// Token: 0x04000CC9 RID: 3273
		public float max = 1f;
	}
}
